﻿using System;
using System.Linq.Expressions;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Snake.Utils;

namespace Snake.Test
{
    [TestClass]
    public class Expression_Test
    {
        [TestMethod]
        public void TestMethod1()
        {
            Expression<Func<Department, string>> func = a => a.Name;
            var test=  ExpressionHelper.GetPropertyInfo(func);
            var test2 = ExpressionHelper.GetLambda(func);
            var test3 = ExpressionHelper.GetPropertyPath(func);
        }
    }
}
